package com.chance.cc.crawler.development.scripts.allfeild;

import com.chance.cc.crawler.core.CrawlerEnum;
import com.chance.cc.crawler.core.script.ScriptContext;
import com.chance.cc.crawler.core.script.crawler.DomainExecuteScript;

/**
 * @author lt
 * @version 1.0
 * @date 2020-11-19 17:54:07
 * @email okprog@sina.com
 */
public class AutoVMCommonField implements DomainExecuteScript {
    //四垂媒公用字段
    public static String Tag_Field_Brand = "brand";//品牌
    public static String Field_Brand_name = "brand_name"; //品牌名
    public static String Field_Brand_url = "brand_url"; //品牌地址
    public static String Field_Brand_id = "brand_id"; //品牌id
    public static String Tag_Field_Series = "series";  //车系
    public static String Field_Series_name = "series_name"; //车系名
    public static String Field_Series_url = "series_url"; //车系url
    public static String Field_Series_id = "series_id"; //车系id


    public static String Tag_Field_PostClient = "post_client";
    public static String Tag_Field_Is_Elite = "isElite"; //是否精华
    public static String Tag_Field_Is_Video = "isVideo"; //是否视频
    public static String Tag_Field_Topic_Type = "topic_type"; //类型标签
    public static String Tag_Field_Car_Model = "car_model"; //车型
    public static String Tag_Field_Addr_Info = "Addr_Info"; //地域信息 Map
    public static String Tag_Field_Forum_Name = "forum_name"; //论坛名
    public static String Tag_Field_Data_Type = "data_type";//数据类型

    //作者信息
    public static String Field_Author_From = "author_from";
    public static String Field_Author_Identification_Model = "author_identification_model";
    public static String Field_Author_Favorite_Model = "author_favorite_model";
    public static String Field_Author_Sign_In = "author_sign_in";
    public static String Field_Author_Topic_Count = "author_topic_count";  //作者发帖数
    public static String Field_Author_Reply_Count = "author_reply_count";  //作者回复数
    public static String Field_Author_Pick_Count = "author_pick_count";  //作者精华数
    public static String Field_Author_Follows = "author_follows";  //作者粉丝数

    //口碑字段
    public static String Field_Praise_Target = "praise_target"; // 购车目的
    public static String Field_Praise_Time_Buy = "praise_time_buy"; // 购车日期
    public static String Field_Praise_Address_Buy = "praise_address_buy"; // 购车地点
    public static String Field_Praise_Price_Buy = "praise_price_buy"; // 购车价格
    public static String Field_Praise_Fuel_Economy = "praise_fuel_economy"; // 油耗
    public static String Field_Praise_Drive_Distance = "praise_drive_distance"; // 行驶距离
    public static String Field_Praise_Vendor = "praise_vendor"; // 购车经销商
    public static String Field_Praise_values = "praise_values"; // 购车经销商


    //经销商字段
    public static String Tag_Categroy_List = "categroy_list"; //list结构[{"name":"促销信息","url":""},{"name":"优惠促销","url":""}]
    public static String Tag_Shop_detail = "shop_detail";//商铺信息（Map结构）
    public static String Field_Shop_id = "shop_id"; //商铺id
    public static String Field_Shop_Url = "shop_url"; //商铺url
    public static String Field_Shop_Name = "shop_name"; //商铺名字
    public static String Field_Shop_Phone = "shop_Phone"; //商铺电话
    public static String Field_Shop_Address = "shop_address"; //商铺地址
    public static String Tag_Brand_detail = "brand_detail";//采集品牌详情（Map结构）
    public static String Tag_City = "city"; //城市
    public static String Field_Preferential_Terms = "preferential_terms";//优惠条件
    public static String Field_Remaining_Time = "remaining_time"; //剩余时间

    //车型采集字段
    public static String Field_Praise_url = "praise_url"; //口碑地址
    public static String Tag_Forum_detail = "forum_detail"; //论坛详情（Map结构）
    public static String Field_Forum_name = "forum_name"; //论坛名称
    public static String Field_Forum_url = "forum_url"; //论坛地址
    public static String Tag_Is_sale = "is_sale"; //是否在售（1:在售；0:未售；-1：停售）
    public static String Field_Model_name = "model_name";//车型名称
    public static String Field_Model_url = "model_url";//车型地址
    public static String Tag_Field_Series_Two = "series_two";  //二级车系
    public static String Tag_Field_Brand_Child = "brand_child";  //子品牌
    public static String Field_Car_Id = "car_id";//车系dataId值
    public static String Field_Car_Market  = "car_market";//车型特殊标签（即将上市、新款上市.....）

    @Override
    public String domain() {
        return "static-filed-domain";
    }

    @Override
    public CrawlerEnum.CrawlerScriptType scriptType() {
        return CrawlerEnum.CrawlerScriptType.crawler;
    }

    @Override
    public void initScript() {

    }

    @Override
    public boolean isExecute(ScriptContext context) {
        return false;
    }

    @Override
    public void beforeExecute(ScriptContext context) {

    }

    @Override
    public void execute(ScriptContext context) throws Exception {

    }

    @Override
    public void afterExecute(ScriptContext context) {

    }

    @Override
    public boolean hasException(ScriptContext context, Throwable exception) {
        return false;
    }
}
